package com.wmwj.hxlj.service;

import org.springframework.stereotype.Service;

@Service
public interface ArticleLikeService {
    /**
     * 查询用户是否点赞过该文章
     * @param articleId
     * @param userId
     * @return
     */
    Boolean findLikeStatus(Long articleId, Long userId);

    /**
     * 插入点赞记录
     * @param articleId
     * @param userId
     * @return
     */
    int insertLikeStatus(Long articleId, Long userId);

    /**
     * 删除点赞记录
     * @param articleId
     * @param userId
     * @return
     */
    int deleteLikeStatus(Long articleId, Long userId);
}
